if(!dojo._hasResource["market.widgets.GenericMessage"]){
dojo._hasResource["market.widgets.GenericMessage"] = true;
dojo.provide("market.widgets.GenericMessage");
dojo.declare("market.widgets.GenericMessage",dijit._Widget,{
timeoutObject:2000,
commonMessageID:'commonMessage',
showSucc:function (message){
   this._commonShow(message, "valid_box", "error_box");
},
showError:function (message){
   this._commonShow(message, "error_box", "valid_box");
},
timedOut:function(removeStyle){
   var fadeTarget = dojo.byId(this.commonMessageID);
   dojo.fadeOut({ node: fadeTarget }).play();
   dojo.removeClass(this.commonMessageID,removeStyle);
},
_commonShow:function(message,addClass,removeClass){
   var fadeTarget = dojo.byId(this.commonMessageID);
   dojo.removeClass(this.commonMessageID,removeClass);
   dojo.addClass(this.commonMessageID,addClass);
   fadeTarget.innerHTML = message;
   dojo.fadeIn({node: fadeTarget}).play();
   timeoutObject = setTimeout("SYSTEMWIDGET.messageWidget().timedOut('"+addClass+"')",this.timeoutObject);
}
});}
